package com.sheng.center.service;

import java.util.List;

import com.sheng.center.dao.StaffDao;
import com.sheng.center.entity.Staff;

public class StaffServiceImpl implements StaffService {

	private StaffDao staffDao;

	@Override
	public void add(Staff staff) {
		staffDao.add(staff);
	}

	@Override
	public void edit(Staff staff) {
		staffDao.edit(staff);

	}

	@Override
	public void delete(Staff staff) {
		staffDao.delete(staff);

	}

	@Override
	public List<Staff> findAllList(Staff staff) {
		return staffDao.findAllList(staff);
	}

	@Override
	public Staff findById(Staff staff) {
		return staffDao.findById(staff);
	}

	public StaffDao getStaffDao() {
		return staffDao;
	}

	public void setStaffDao(StaffDao staffDao) {
		this.staffDao = staffDao;
	}

	@Override
	public String verify(Staff staff) {
		return staffDao.verify(staff);
	}

}
